<!--error, success-->

<!DOCTYPE html>
<html>
  <head>
    <title>Sign up</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <h1>Sign up</h1>
    <div id='form'>
    <form name='login' action='/signup' method='post'>
      Username: <input type="text" name="LoginName"> <br/><br/>
      Password: <input type='password' name='Password'><br/><br/>
      Repeat Password: <input type='password' name='R_password'><br/><br/>
     E-mail: <input type="text" name="Email"> <br/><br/><br/>
      <p>---- Password changing question----</p><br/>
       Checking question: <input type="text" name="PswQuestion"> <br/><br/>
      Checking answer: <input type='text' name='PswAnswer'><br/><br/><br/>
     <p>---- Personal information (optional)----</p><br/>
      Real name: <input type='text' name='TrueName'><br/><br/>
      Gender: Male<input type='radio' name='Gender' value='m'> &nbsp;
              Female<input type='radio' name='Gender' value='f'>&nbsp;
              Secret<input type='radio' name='Gender' value='s' checked='true'>
              <br/><br/>
     Address: <input type="text" name="Address"> <br/><br/>
      Postcode: <input type='text' name='Postcode'><br/><br/>
      phone: <input type="text" name="Phone"> <br/><br/>
      
      
      <input type='submit' value='submit'>
      <%  if(locals.error){ %>
         <strong><%= error %></strong>
       <% }else if(locals.success){ %>
         <strong><%= success %></strong>
       <% }%>
    </form>
    </div>
  </body>
</html>